﻿using System;
using System.Collections.Generic;
using System.Linq;

using cit.CopyDetection.DataObject;

namespace cit.CopyDetection.Model
{
    public class BinaryWtFunc: ILocalWtFunc 
    {
        #region ILocalWtScheme Members

        public double Apply(Term term, List<Term> terms)
        {
            if (terms.Exists(t => t.Equals(term)))
                return 1D;
            return 0D;
        }

        #endregion
    }
}
